import request from '@/utils/request'

//查询
export function findPageList(data) {
    return request({
      url: '/holiday/config/findHolidayPageList',
      method: 'post',
      data: data
    })
}

//新增
export function addHoliday(data) {
    return request({
      url: '/holiday/config/createHoliday',
      method: 'post',
      data: data
    })
}

// 
export function updateHoliday(data) {
    return request({
      url: '/holiday/config/updateHoliday',
      method: 'post',
      data: data
    })
}

export function deleteHoliday(id) {
  return request({
    url: '/holiday/config/deleteHolidayById/' + id,
    method: 'delete',
  })
}

export function findHolidayById(id) {
    return request({
      url: '/holiday/config/getHolidayById/' + id,
      method: 'get',
    })
  }